import service from '../utils/require'

export const login = (data) => {
  return service({
    url: '/sys/login',
    method: 'POST',
    data
  })
}

/**
 * 获取用户数据
 */
export const getUserInfo = () => {
  return service({
    url: '/sys/profile',
    method: 'get'
  })
}
